package com.xuecheng.search.pojo;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * @author ShengJinFeng
 * @version V1.0
 * @ClassName TeachplanMediaPub
 * @Description (课程计划媒资关联类)
 * @date 2020/3/6 16:50
 * @since V1.0
 */
@Data
@Document(indexName = "xc_course_media",type = "docs",shards = 1,replicas = 0)
public class TeachplanMediaPub {

    @Id
    private String teachplanId;

    @Field(type = FieldType.keyword)
    private String mediaId;

    @Field(type = FieldType.text,analyzer = "ik_max_word",searchAnalyzer = "ik_smart")
    private String mediaFileOriginalName;

    @Field(type = FieldType.keyword)
    private String mediaUrl;

    @Field(type = FieldType.keyword)
    private String courseId;
}
